﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;

namespace NAnt.SVN.Tasks
{
    /// <summary>
    /// Stub class to use when you want to include a svn command but not implement it.
    /// $Id$
    /// </summary>
    public class NotImplemented : SVNTask
    {
        /// <summary>
        /// Do not run any command
        /// </summary>
        protected override void ExecuteTask()
        {
            InitializeSVNTask();
            Log(Core.Level.Warning,
                string.Format(getString("SVN0104"), Command, getAssemblyVersion()));
        }

        #region Util functions

        public string getAssemblyVersion()
        {
                Assembly assembly = System.Reflection.Assembly.GetExecutingAssembly();
                return assembly.GetName().Version.ToString();
        }


        #endregion
    }
}
